package com.ysd.entity;

import java.sql.Timestamp;

public class User {

	private String id; // 用户编号UUID
	private String loginName; // 登录名
	private String password; // 密码
	private String isLockOut; // 是否锁定
	private Timestamp createTime; // 账号创立时间
	private Timestamp lastLoginTime; // 最后一次登录时间
	private Timestamp lockTime; // 被锁定时间
	private Integer psdWrongTime; // 密码错误次数
	private String protectEmail; // 密保邮箱
	private String protectMTel; // 密保手机号

	public User() {
		super();
	}

	public User(String loginName, Timestamp lastLoginTime) {
		this.loginName = loginName;
		this.lastLoginTime = lastLoginTime;
	}

	public User(String loginName, String password, String protectEmail, String protectMTel) {
		this.loginName = loginName;
		this.password = password;
		this.protectEmail = protectEmail;
		this.protectMTel = protectMTel;
	}
	
	public User(String loginName, String isLockOut) {
		this.loginName = loginName;
		this.isLockOut = isLockOut;
	}

	public User(String loginName, String password, String isLockOut, Timestamp createTime, Timestamp lastLoginTime,
			Timestamp lockTime, Integer psdWrongTime, String protectEmail, String protectMTel) {
		this.loginName = loginName;
		this.password = password;
		this.isLockOut = isLockOut;
		this.createTime = createTime;
		this.lastLoginTime = lastLoginTime;
		this.lockTime = lockTime;
		this.psdWrongTime = psdWrongTime;
		this.protectEmail = protectEmail;
		this.protectMTel = protectMTel;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIsLockOut() {
		return isLockOut;
	}

	public void setIsLockOut(String isLockOut) {
		this.isLockOut = isLockOut;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Timestamp lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Timestamp getLockTime() {
		return lockTime;
	}

	public void setLockTime(Timestamp lockTime) {
		this.lockTime = lockTime;
	}

	public Integer getPsdWrongTime() {
		return psdWrongTime;
	}

	public void setPsdWrongTime(Integer psdWrongTime) {
		this.psdWrongTime = psdWrongTime;
	}

	public String getProtectEmail() {
		return protectEmail;
	}

	public void setProtectEmail(String protectEmail) {
		this.protectEmail = protectEmail;
	}

	public String getProtectMTel() {
		return protectMTel;
	}

	public void setProtectMTel(String protectMTel) {
		this.protectMTel = protectMTel;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", loginName=" + loginName + ", password=" + password + ", isLockOut=" + isLockOut
				+ ", createTime=" + createTime + ", lastLoginTime=" + lastLoginTime + ", lockTime=" + lockTime
				+ ", psdWrongTime=" + psdWrongTime + ", protectEmail=" + protectEmail + ", protectMTel=" + protectMTel
				+ "]";
	}
}
